package edu.chinasoft.mapper;

import edu.chinasoft.domain.Function;
import edu.chinasoft.domain.PageUnitForFunction;
import edu.chinasoft.domain.User;

import java.util.List;
import java.util.Map;


public interface FunctionMapper {
    //左边功能栏
    List<Function> selectFunctionByUserID(User user);
    //查询所有权限
    List<Function> selectFunction();
    //分页查询
    PageUnitForFunction getRecordNum();
    //查询当前权限是否有父亲权限
    Integer selectFatherFunctionById(Function function);
    //查询所有父亲权限
    List<Function> selectFatherFunction();
    Function selectSonFunctionById(Function function);
    Integer selectFatherFunctionByName(Function function);
    boolean updateFunctionByFunctionId(Function function);
    List<Function> selectFunctionByFatherId(Function function);
    int selectRoleFunctionNum(Function function);
    boolean deleteRoleFunction(Function function);
    boolean deleteFunctionById(Function function);
	List<Function> selectUnitFunction(Map<String, Object> map);
	boolean insertFunction(Function function);
	Function selectFaFunctionById(Function function);
}
